import request from '@/utils/request'


export function getDictListList(data) {
  return request({
    url: '/admin/dictList/page',
    method: 'get',
    params: data
  })
}


export function getDictList(id) {
  return request({
    url: '/admin/dictList/' + id,
    method: 'get'
  })
}

export function updateDictList(data) {
  return request({
    url: '/admin/dictList',
    method: 'put',
    data
  })
}

/**
 * 保存字典
 * @param {字典} data
 */
export function saveDictList(data) {
  return request({
    url: '/admin/dictList',
    method: 'post',
    data
  })
}

/**
 *  删除字典
 * @param {id} id
 */
export function delDictList(id) {
  return request({
    url: '/admin/dictList/' + id,
    method: 'delete'
  })
}
